// 门禁组管理
import {
    ajaxPostBack,
    ajaxPost
} from '@/utils/data/request'
// 列表
export function list(params: any) {
    return ajaxPostBack("device/group-list", params, {
        cookies: ['yard_sn']
    })
}

// 全部
export function all() {
    return list({ page: 1, per_page: 100 })
}

// 编辑
export function edit(params: any) {
    return ajaxPost("device/group-edit", params, { successMessage: true, cookies: ['yard_sn'] })
}

// 新增
export function add(params: any) {
    return ajaxPost("device/group-create", params, { successMessage: true, cookies: ['yard_sn'] })
}

// 删除
export function del({ group_sn }: any) {
    return ajaxPost("device/group-delete", { group_sn }, { successMessage: true, cookies: ['yard_sn'] })
}



